package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.OutInventoryMapper;
import com.ruoyi.system.domain.OutInventory;
import com.ruoyi.system.service.IOutInventoryService;

/**
 * 可出库存Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-20
 */
@Service
public class OutInventoryServiceImpl implements IOutInventoryService 
{
    @Autowired
    private OutInventoryMapper outInventoryMapper;

    /**
     * 查询可出库存
     * 
     * @param id 可出库存主键
     * @return 可出库存
     */
    @Override
    public OutInventory selectOutInventoryById(Long id)
    {
        return outInventoryMapper.selectOutInventoryById(id);
    }

    /**
     * 查询可出库存列表
     * 
     * @param outInventory 可出库存
     * @return 可出库存
     */
    @Override
    public List<OutInventory> selectOutInventoryList(OutInventory outInventory)
    {
        return outInventoryMapper.selectOutInventoryList(outInventory);
    }

    /**
     * 新增可出库存
     * 
     * @param outInventory 可出库存
     * @return 结果
     */
    @Override
    public int insertOutInventory(OutInventory outInventory)
    {
        return outInventoryMapper.insertOutInventory(outInventory);
    }

    /**
     * 修改可出库存
     * 
     * @param outInventory 可出库存
     * @return 结果
     */
    @Override
    public int updateOutInventory(OutInventory outInventory)
    {
        return outInventoryMapper.updateOutInventory(outInventory);
    }

    /**
     * 批量删除可出库存
     * 
     * @param ids 需要删除的可出库存主键
     * @return 结果
     */
    @Override
    public int deleteOutInventoryByIds(Long[] ids)
    {
        return outInventoryMapper.deleteOutInventoryByIds(ids);
    }

    /**
     * 删除可出库存信息
     * 
     * @param id 可出库存主键
     * @return 结果
     */
    @Override
    public int deleteOutInventoryById(Long id)
    {
        return outInventoryMapper.deleteOutInventoryById(id);
    }
}
